<template>
  <div class="achievement" v-cloak>
    <div class="bg_color"></div>
    <div style="height: 4px;position: absolute;z-index: 2222; width: 100%; top: 46px;background: #f0f0f0"></div>
    <div style="height: 50px;"></div>
    <div class="about-us" v-show="show">
      <div v-html="introduce" class="con_term">

      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'CompanyIntroduce',
    data () {
      return {
        show: false,
        introduce: {}
      }
    },
    methods: {
      verify: function () {
        let thisObj = this
        this.$chaos.setTitle('公司介绍')
        this.$store.commit('headerShow', true)
        this.$store.commit('title', '公司介绍')
        this.$store.commit('footerShow', false)
        thisObj.$chaos.ajax({
          slient: true,
          userinfo: false,
          url: 'Index/getCompanyIntroduce',
          callback: function (type, res) {
            if (res.status === 'SUCCESS') {
              thisObj.introduce = res.result.company_introduce
              thisObj.show = true
            } else {
              thisObj.show = true
              thisObj.$vux.toast.show({
                text: res.result.msg,
                type: 'text',
                width: '180px',
                position: 'bottom'
              })
            }
          }
        })
      }
    },
    created: function () {
      this.verify()
    },
    mounted: function () {
      window.scrollTo(0, 2000)
    },
    watch: {
      '$route': 'verify'
    }
  }
</script>
<style scoped>
  [v-cloak] {
    display: none;
  }
  body,
  html {
    background: #fff;
  }
  .con_term{
    padding: 0px 15px;
  }
  .bg_color{
    background: #fff!important;
  }
</style>
